import request from '@/utils/request'

const apiUrl = '/api/performance-bonus-base'

export function getPage(params) {
  return request({
    url: `${apiUrl}/page`,
    method: 'get',
    params
  })
}

export function getById(id) {
  return request({
    url: `${apiUrl}/${id}`,
    method: 'get'
  })
}

export function saveOrUpdate(data) {
  return request({
    url: `${apiUrl}/save`,
    method: 'post',
    data
  })
}

export function removeById(id) {
  return request({
    url: `${apiUrl}/${id}`,
    method: 'delete'
  })
} 